package com.wang.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wang.mapper.CalibrationReturnMapper;
import com.wang.pojo.CalibrationReturn;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CalibrationReturnServiceImpl extends ServiceImpl<CalibrationReturnMapper, CalibrationReturn> implements CalibrationReturnService {

    @Autowired
    private CalibrationReturnMapper calibrationReturnMapper;

    @Override
    public CalibrationReturn selectByControlId(Integer controlId) {
        return calibrationReturnMapper.selectOne(new LambdaQueryWrapper<CalibrationReturn>().eq(CalibrationReturn::getControlId,controlId));
    }
}
